#include "all.h"

void Cylinder_Init()
{
	Cy_NGND=Cy_Close;
	Cy_VCC=Cy_Close;
	Cy_MOTOR=Cy_Close;
}
void Cylinder_Ser(u8 dat, u8 instruct)
{
	switch(dat)
	{
		case NGND:	Cy_NGND = instruct;break;
		case VCC:	Cy_VCC = instruct;break;
		case MOTOR:	Cy_MOTOR = instruct;break;
		case Cy_All:
				Cy_NGND = instruct;
				Cy_VCC = instruct;
				Cy_MOTOR = instruct;
				break;
	}
}
